const {defineConfig} = require('@vue/cli-service')
const path = require('path')
module.exports = defineConfig({
    transpileDependencies: true,
    lintOnSave: false,//关闭eslint校验工具,
    pluginOptions: {
        'style-resources-loader': {
            preProcessor: 'less',
            //路径根据自己的文件配置,注意此处不能使用别名路径
            patterns: [path.resolve(__dirname, './src/assets/styles/global.less')]
        }
    },
    //配置代理跨域
    devServer: {
        proxy: {
            "/api": {
                target: "http://gmall-h5-api.atguigu.cn/",
            },
        },
    },

})
